package com.numberone.system.domain;


import com.numberone.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 收货地址表 address
 * 
 * @author numberone
 * @date 2020-10-13
 */
public class Address extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 收货地址id */
	private Long id;
	/** 用户id */
	private Long userId;
	/** 收件人 */
	private String name;
	/** 联系方式 */
	private String phone;
	/** 省 */
	private String province;
	/** 市 */
	private String city;
	/** 区/县 */
	private String area;
	/** 乡镇/街道 */
	private String towns;
	/** 详细地址 */
	private String defaultAddress;
	/** 状态(0非默认 1默认) */
	private Integer status;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setUserId(Long userId) 
	{
		this.userId = userId;
	}

	public Long getUserId() 
	{
		return userId;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setPhone(String phone) 
	{
		this.phone = phone;
	}

	public String getPhone() 
	{
		return phone;
	}
	public void setProvince(String province) 
	{
		this.province = province;
	}

	public String getProvince() 
	{
		return province;
	}
	public void setCity(String city) 
	{
		this.city = city;
	}

	public String getCity() 
	{
		return city;
	}
	public void setArea(String area) 
	{
		this.area = area;
	}

	public String getArea() 
	{
		return area;
	}
	public void setTowns(String towns) 
	{
		this.towns = towns;
	}

	public String getTowns() 
	{
		return towns;
	}
	public void setDefaultAddress(String defaultAddress) 
	{
		this.defaultAddress = defaultAddress;
	}

	public String getDefaultAddress() 
	{
		return defaultAddress;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("province", getProvince())
            .append("city", getCity())
            .append("area", getArea())
            .append("towns", getTowns())
            .append("defaultAddress", getDefaultAddress())
            .append("status", getStatus())
            .toString();
    }
}
